import Spread from './Spread';
import Flywire from './Flywire';
import Shield1 from './Shield1';
import Shield2 from './Shield2';
import Magic1 from './Magic1';
import Magic2 from './Magic2';
import SpriteRise from './SpriteRise';
import Arrow from './Arrow';
import Noise from './Noise';
// import Noise2 from './Noise2';
import Fresnel from './Fresnel';
// import Radar from './Radar';

const json = [
	{
		id: 'spread',
		title: '扩散',
		instance: new Spread(),
	},
	{
		id: 'flywire',
		title: '飞线',
		instance: new Flywire(),
	},
	{
		id: 'shield1',
		title: '能量盾',
		instance: new Shield1(),
	},
	{
		id: 'shield2',
		title: '能量盾',
		instance: new Shield2(),
	},
	{
		id: 'magic1',
		title: '魔法阵',
		instance: new Magic1(),
	},
	{
		id: 'magic2',
		title: '魔法阵2',
		instance: new Magic2(),
	},
	{
		id: 'spriteRise',
		title: '上升数字',
		instance: new SpriteRise(),
	},
	{
		id: 'arrow',
		title: '箭头',
		instance: new Arrow(),
	},
	{
		id: 'noise',
		title: '噪声',
		instance: new Noise(),
	},
	// {
	// 	id: 'noise2',
	// 	title: '噪声2',
	// 	instance: new Noise2(),
	// },
	{
		id: 'fresnel',
		title: '菲涅尔',
		instance: new Fresnel(),
	},
	// {
	// 	id: 'radar',
	// 	title: '雷达',
	// 	instance: new Radar(),
	// },
];

export default json.map((item, index) => {
	let col = index % 3;
	let row = parseInt(index / 3);
	return {
		col: (col + 1) * 4 + col * 28 + 'vw',
		row: (row + 1) * 4 + row * 24 + 'vw',
		isFullPage: false,
		...item,
	};
});
